package com.gitee.wsl.resource.font

import androidx.compose.ui.text.font.Font
import com.gitee.wsl.io.asAndroidFile
import kotlinx.io.files.Path


actual suspend fun makeFont(
    spec: FontSpec,
    path: Path,
    bytes: ByteArray,
): Font = Font(
        file = path.asAndroidFile(),
        weight = spec.weight,
        style = spec.style
    )
